package cn.itwen.star.graph.core.utils;


import cn.itwen.star.graph.core.pojo.User;

public class UserUtils {

    static ThreadLocal<User> userThreadLocal = new ThreadLocal<>();

    public static User getUser() {
        return userThreadLocal.get();
    }

    public static void setUser(User user) {
        userThreadLocal.set(user);
    }

    public static void removeUser() {
        userThreadLocal.remove();
    }

}